<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:import href="base-template.imp.xsl" />
	
	<xsl:output encoding="UTF-8" method="html" saxon:character-representation="native" xmlns:saxon="http://saxon.sf.net/"/>
	
	<xsl:template name="content">
		<div class="title">Неопубликованные объявления</div>
		<xsl:for-each select="//page/Cars/Car/">
			<xsl:if test="active/@description='На рассмотрении'">
				<div class="title-article"><xsl:value-of select="Model/Developer/@name"/><![CDATA[&nbsp;]]>
				<xsl:value-of select="Model/@name"/><br/> </div>
				<table>
					<tr>
						<td class="text">Объем двигателя:</td>
						<td class="text"><xsl:value-of select="@enginev"/> см<sup>3</sup></td>
					</tr>
				<tr>
					<td class="text">Год выпуска: </td>
					<td class="text"><xsl:value-of select="@year"/> г.</td>
				</tr>
				<tr>
					<td class="text">Пробег: </td>
					<td class="text"><xsl:value-of select="@path"/> км.</td>
				</tr>
				<tr>
					<td  class="text">Цена: </td>
					<td class="text"><xsl:value-of select="@price"/> $</td>
				</tr>
				<tr>
					<td class="text">Цвет: </td>
					<td class="text"><xsl:value-of select="@color"/></td>
				</tr>
				<tr>
					<td class="text">Состояние: </td>
					<td class="text"><xsl:value-of select="state/@description"/></td>
				</tr>
				<tr>
					<td class="text">Описание: </td>
					<td class="text"><xsl:value-of select="@description"/></td>
				</tr>
				<tr>
					<td class="text">
						<a href="/admin/car/{@infoid}/remove">Удалить</a> <![CDATA[&nbsp;]]>
					</td>
					<!--<a href="/admin/car/{@infoid}">Изменить</a> <![CDATA[&nbsp;]]>-->
					<td class="text">
						<a href="/admin/car/{@infoid}/public">Опубликовать</a> <![CDATA[&nbsp;]]>
					</td>
					<!--<a href="/admin/car/{@infoid}/archive">В архив</a> -->
				</tr>
				</table>
			</xsl:if>
		</xsl:for-each>
	</xsl:template>
</xsl:stylesheet>	

<!--<xsl:value-of select="//page/Car/Model/@name"/></div>
			<table>
				<tr>
					<td class="text">Объем двигателя:</td>
					<td class="text"><xsl:value-of select="//page/Car/@enginev"/> см<sup>3</sup></td>
				</tr>
				<tr>
					<td class="text">Год выпуска: </td>
					<td class="text"><xsl:value-of select="//page/Car/@year"/> г.</td>
				</tr>
				<tr>
					<td class="text">Пробег: </td>
					<td class="text"><xsl:value-of select="//page/Car/@path"/> км.</td>
				</tr>
				<tr>
					<td  class="text">Цена: </td>
					<td class="text"><xsl:value-of select="//page/Car/@price"/><![CDATA[$]]></td>
				</tr>
				<tr>
					<td class="text">Цвет: </td>
					<td class="text"><xsl:value-of select="//page/Car/@color"/></td>
				</tr>
				<tr>
					<td class="text">Состояние: </td>
					<td class="text"><xsl:value-of select="//page/Car/state/@description"/></td>
				</tr>
				<tr>
					<td class="text">Описание: </td>
					<td class="text"><xsl:value-of select="//page/Car/@description"/></td>
				</tr>
			</table> -->
